<?php include PATH_VIEW . 'gongyong.php'; ?>
<title>添加菜单 - 后台管理</title>
<!--<div class="all_main">
    <div class="module_left">
        <dl class="small_module">
            <dt onclick="dianji(1)">后台菜单管理</dt>
            <dd id="bb1" style='display: block;'>
                <a href="index.php?C=Xitong&A=menuAdd">添加后台菜单</a>
                <a href="index.php?C=Xitong&A=menuList">后台菜单列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(2)">后台菜单分组管理</dt>
            <dd id="bb2">
                <a href="#">添加后台菜单分组</a>
                <a href="#">后台菜单分组列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(3)">特殊权限类别管理</dt>
            <dd id="bb3">
                <a href="#">添加特殊权限类别</a>
                <a href="#">特殊权限类别列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(4)">特殊权限管理</dt>
            <dd id="bb4">
                <a href="#">添加特殊权限</a>
                <a href="#">特殊权限列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(5)">特殊权限分组管理</dt>
            <dd id="bb5">
                <a href="#">添加特殊权限分组</a>
                <a href="#">特殊权限分组列表</a>
            </dd>
        </dl>
        <dl class="small_module">
            <dt onclick="dianji(6)">账户管理</dt>
            <dd id="bb6">
                <a href="#">添加账户</a>
                <a href="#">账户列表</a>
                <a href="#">个人信息维护</a>
                <a href="#">修改个人密码</a>
            </dd>
        </dl>
    </div>
</div>-->
<div class="all_main">
    <div class="module_right">
        <dl>
            <dt>操作说明 
            <a href="#" onclick="dianji(17)">[关闭/展开]</a>
            </dt>
            <dd id="bb17" style="margin-left: 3px;color: darkmagenta;">以下的菜单名称边框必填项。</dd>
        </dl>
    </div>
    <div class="module_right_bottom">
        <dl>
            <dt>添加后台菜单</dt>
            <dd>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                    <form name="form1" method="post" action="<?php echo URL; ?>" onsubmit="return checkMenu()">                        
                        <tr>
                            <td align="right" width="120">上级菜单名称</td>
                            <td width="400">
                                <select name="pid[]" id="selec1" onchange="return getSelectOne(this.value)" style="float: left;">
                                    <option value="0" id="xiaji">请选择下级</option>
                                    <?php foreach ($different as $key => $ls) { ?>                                                                                     
                                        <option value="<?php echo $ls['Fid']; ?>" <?php echo ($pids_arrr[1] == $ls['Fid']) ? "selected='selected'" : ''; ?>><?php echo $ls['Fname']; ?></option>                                        
                                    <?php } ?>
                                </select>
                                <select name="pid[]" id="selec2" onchange="return getSelectTwo(this.value)" style="display: none;float: left;margin-left: 7px;"></select>
                                <select name="pid[]" id="selec3" style="display: none;float: left;margin-left: 7px;"></select>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td align="right" width="120">菜单名称</td>
                            <td width="230"><input id='mouse1' class="Hover" type="text" name="Fname" value="<?php echo $modify['Fname']; ?>" style="border:1px dashed darkmagenta;" /></td>
                            <td id="Whether1">在填写菜单名称时，请注意简短且要具有概括性。字符长度：2-16个</td>
                        </tr>
                        <tr>
                            <td align="right" width="120">class名称</td>
                            <td width="230"><input id='mouse2' class="Hover" type="text" name="Fclass" value="<?php echo $modify['Fclass']; ?>" style="border:1px dashed darkmagenta;" /></td>
                            <td id="Whether2">该菜单归属于哪个类文件，请填写类名称（请不要填写page后缀），最多2-32个字符，注：第二级菜单不要填写</td>
                        </tr>
                        <tr>
                            <td align="right" width="120">function名称</td>
                            <td width="230"><input id='mouse3' class="Hover" type="text" name="Ffunction" value="<?php echo $modify['Ffunction']; ?>" style="border:1px dashed darkmagenta;" /></td>
                            <td id="Whether3">类中的哪个方法，最多2-32个字符，注：第二级菜单不要填写</td>
                        </tr>
                        <tr>
                            <td align="right" width="120">way名称</td>
                            <td width="230"><input id='mouse4' class="Hover" type="text" name="Fway" value="<?php echo $modify['Fway']; ?>" style="width: 100px;border:1px dashed darkmagenta;" /></td>
                            <td id="Whether4">方法中的某一个小功能模块，最多1-16个字符，注：第二级菜单不要填写</td>
                        </tr>
                        <tr>
                            <td align="right" width="120">排序</td>
                            <td width="230"><input id='mouse5' class="Hover" maxlength="2" type="text" name="Fsort" value="1" style="width: 50px;border:1px dashed darkmagenta;" /></td>
                            <td id="Whether5">数值越小，排列越前，数值大小范围：1-99</td>
                        </tr>
                        <tr>
                            <td align="right" width="120">是否可见</td>
                            <td width="230">
                                <select name="Fstatus" id="Fstatus">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </td>
                            <td>是否可见的意思是，是否在页面顶部或左侧将此菜单显示出来</td>
                        </tr>
                        <tr>
                            <td></td>
                            <td width="230">
                                <input type="submit" class="queren" name="ok" value="确认提交" />
                                <input type="button" class="fanhui" name="ok" value="返回" onclick="location.href = '<?php echo str_replace('&A=menuModify', '&A=menuList', URL); ?>'" />
                            </td>
                            <td></td>
                        </tr>
                    </form>
                </table>

            </dd>
        </dl>
    </div>
</div>

<script type="text/javascript">
    getSelectTwo(<?php echo $pids_arrr[1]; ?>,<?php echo $pids_arrr[2]; ?>,<?php echo $pids_arrr[3]; ?>);
</script>